package yh.design.factorysimple.impl;

import yh.design.common.res.APIResult;
import yh.design.factorysimple.AbstractPayment;

import java.math.BigDecimal;

/**
 * 银联支付
 * @author: zyh
 * @date: 2025/4/12 22:53
 **/
public class UnionPayment extends AbstractPayment {

    //银联账户支付逻辑
    public APIResult pay(BigDecimal amount, String userId, String payCode){

        //1.商户配置信息获取
        System.out.println("商户配置信息获取");
        //2.调用银联支付接口
        System.out.println("调用银联支付接口");
        //3.记录消费账单
        System.out.println("记录消费账单");

        return APIResult.success();
    }
}
